//
//  MSScreenButton.m
//  觅尚
//
//  Created by No.8 on 2019/4/10.
//  Copyright © 2019 No.8. All rights reserved.
//

#import "MSScreenButton.h"

@implementation MSScreenButton

- (void)setup
{
    self.titleLabel.textAlignment = NSTextAlignmentCenter;
}

- (instancetype)initWithFrame:(CGRect)frame
{
    if (self = [super initWithFrame:frame]) {
        [self setup];
    }
    return self;
}

- (void)awakeFromNib
{
    [self setup];
}


- (void)layoutSubviews
{
    [super layoutSubviews];
    
    // 调整文字
    self.titleLabel.x = 0;
    self.titleLabel.y = 10 * px;
    self.titleLabel.width = 100 * px;
    self.titleLabel.height = 80 * px;
    
    
    //    self.backgroundColor = [UIColor blackColor];
    // 调整图片
    self.imageView.x = self.titleLabel.width;
    self.imageView.y = self.titleLabel.y + 10 * px;
    self.imageView.width = 70 * px;
    self.imageView.height = 60 * px;
    
}
@end
